package com.hmall.common.client;

import com.hmall.common.dto.AddressDTO;

import com.hmall.common.interceptor.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "userservice",configuration = FeignConfig.class)
public interface UserClient {
    @GetMapping("/address/{addressId}")
    AddressDTO findAddressById(@PathVariable("addressId") Long addressId);


}
